import xmlrpclib

from django.conf import settings

def connect():
    client = xmlrpclib.ServerProxy('http://' + 
    settings.TORQUE['username'] + ':' + 
    settings.TORQUE['password'] + '@' + 
    settings.TORQUE['server'] + ':' + settings.TORQUE['port'])
    return client